package org.supreme.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import org.supreme.domain.User;
import org.supreme.service.PayService;

@RestController
public class PayController {
    @Autowired
    private PayService payService;

    @GetMapping("/pay/{id}")
    public User getUserById(@PathVariable("id") Long id) {
        return payService.getUserById(id);
    }
}
